/**
 * Copyright (c) 2016 Lenovo Group
 * All Rights Reserved.
 * 
 * Project Name:lmrp-api
 * Create Time: 2016年1月29日 下午10:23:59
 */
package com.lenovo.lmrp.api.model.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 
 * @author wujin
 * @version v1.0
 */
@Entity
@Table(name = "itsm_project_engineer")
public class ProjectEngineerPO {
    @Id
    @Column
    private String id;

    @Column
    private String projectId;

    @Column
    private String engineerId;

    @Column
    private int engineerType;

    @Column
    private int serviceType;

    @Column
    private String site;

    @Column
    private boolean siteAdmin;
    
    @Column
    private int groupto;
    
    @Column
    private String region;
    
    // status for engineer avaliable in project
    // 0 - disabled, 1- enabled 
    @Column
    private int status;
    
    @Transient
    private EngineerPO engineer;

    @Transient
    private ProjectPO project;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getEngineerId() {
        return engineerId;
    }

    public void setEngineerId(String engineerId) {
        this.engineerId = engineerId;
    }

    public int getEngineerType() {
        return engineerType;
    }

    public void setEngineerType(int engineerType) {
        this.engineerType = engineerType;
    }

    public int getServiceType() {
        return serviceType;
    }

    public void setServiceType(int serviceType) {
        this.serviceType = serviceType;
    }

    public EngineerPO getEngineer() {
        return engineer;
    }

    public void setEngineer(EngineerPO engineer) {
        this.engineer = engineer;
    }

    public ProjectPO getProject() {
        return project;
    }

    public void setProject(ProjectPO project) {
        this.project = project;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public boolean getSiteAdmin() {
        return siteAdmin;
    }

    public void setSiteAdmin(boolean siteAdmin) {
        this.siteAdmin = siteAdmin;
    }

    public int getGroupto() {
        return groupto;
    }

    public void setGroupto(int groupto) {
        this.groupto = groupto;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
